package com.consult.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.consult.entity.Appointment;
import com.consult.mapper.AppointmentMapper;
import com.consult.service.IAppointmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ԤԼ 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-22
 */
@Service
public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appointment> implements IAppointmentService {

    @Override
    public Page<Appointment> getAppointmentPage(Page<Appointment> page) {
        return baseMapper.getAppointmentPage(page);
    }

    @Override
    public Integer getAppNum(Long userId) {
        return baseMapper.getAppNum(userId);
    }
}
